﻿@model Domain.Entity.NewsArticle

@{
    ViewBag.Title = "Edit -- " + Model.Title;
}

<h2 class="title @Html.GetColor(Request.Cookies["color"])">Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


<div id="titlelessItem">
<div class="item">
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        <fieldset>
            <legend>NewsArticle</legend>
            @Html.EditorForModel()


                <input type="submit" value="Save" class="actionButtons @Html.GetColor(Request.Cookies["color"])"/>

        </fieldset>
    }

    <div>
        @Html.ActionLink("Back to List", "Index", null, new {@class="actionButtons " + @Html.GetColor(Request.Cookies["color"])})
    </div>
</div>
</div>
